﻿using UnityEngine;
using System.Collections;
using System.Threading;

public class AniMove : AniBean {

	public Transform[] aniPath;

	public float aniTime;
	
	public override void playCallBack (CallBack callBack) {
		base.playCallBack(callBack);
		gameObject.transform.position = aniPath[0].position;
		iTween.MoveTo(gameObject, iTween.Hash("path", aniPath, "time", aniTime * AniBase.Speed, "easetype", iTween.EaseType.easeInOutCubic, "oncomplete", "playComplete"));
	}
}
